package com.jic.market.request.rest.groupon;

import com.jic.market.request.rest.base.RestBaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author xuyongliang
 * @version V1.0
 * @className GrouponListResponse
 * @description TODO
 * @date 2020/4/2
 */


@ApiModel(description = "拼团列表H5请求类")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GrouponInfoRequest extends RestBaseRequest implements Serializable {

    private static final long serialVersionUID = 2071625473549426423L;

    @ApiModelProperty(notes = "拼团活动编号")
    @NotNull(message = "拼团活动编号非空")
    @NotEmpty(message = "拼团活动编号非空")
    private String groupCode;

    @ApiModelProperty(notes = "第三方商品编码")
    @NotNull(message = "第三方商品编码非空")
    private String thirdProductCode;

    @ApiModelProperty(notes = "商品类型10：spu  20：sku")
    @NotNull(message = "商品类型非空")
    private Integer productType;


}
